<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>  

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>点狮 | Point Lion</title>


    <!--STYLESHEET-->
    <!--=================================================-->

	<c:set var="ctx" value="${pageContext.request.contextPath}" />  
	<%@ include file="/common/include/include.jsp" %>

	<!-- 动态主题 -->
	<if test="setting.color_theme!=null">
		<!-- <link id="theme" href="(setting.color_theme)" rel="stylesheet"> -->
	</if>
	
    <!--=================================================-->
    
    <!--Demo script [ DEMONSTRATION ]-->
    <script src="${ctx}/common/js/demo/nifty-demo.js"></script>

    
    <!--Morris.js [ OPTIONAL ]-->
    <script src="${ctx}/common/plugins/morris-js/morris.min.js"></script>
	<script src="${ctx}/common/plugins/morris-js/raphael-js/raphael.min.js"></script>


    <!--Sparkline [ OPTIONAL ]-->
    <script src="${ctx}/common/plugins/sparkline/jquery.sparkline.min.js"></script>


    <!--=================================================

    REQUIRED  必须的
    You must include this in your project.


    RECOMMENDED 推荐的
    This category must be included but you may modify which plugins or components which should be included in your project.


    OPTIONAL  可选的
    Optional plugins. You may choose whether to include it in your project or not.


    DEMONSTRATION 例子
    This is to be removed, used for demonstration purposes only. This category must not be included in your project.


    SAMPLE  样品
    Some script samples which explain how to initialize plugins or components. This category should not be included in your project.


    Detailed information and more samples can be found in the document.

    =================================================-->
        
</head>
<!--TIPS-->
<!--You may remove all ID or Class names which contain "demo-", they are only used for demonstration. -->
<body>
    <div id="container" class="
    		<c:choose> 
    			<c:when test="setting.box_lay=='1'">boxed-layout</c:when>  
		    	<c:when test="setting.animate=='1'">effect ${setting.animate_type }</c:when>    
		    	<c:when test="setting.fixed_navbar=='1'">navbar-fixed</c:when>
		    	<c:when test="setting.fixed_footer=='1'">footer-fixed</c:when>   
		    	<c:when test="setting.fixed_nav=='1'">mainnav-fixed</c:when>   
		    	<c:when test="setting.show_asd=='1'">aside-in</c:when>  
		    	<c:when test="setting.fixed_asd=='1'">aside-fixed</c:when>  
		    	<c:when test="setting.left_asd=='1'">aside-left</c:when> 
		    	<c:when test="setting.float_asd=='1'">aside-float</c:when>  
		    	<c:when test="setting.dark_asd=='0'">aside-bright</c:when>    
		    	<c:when test="setting.nav_coll=='1'">mainnav-sm</c:when> 
		    	<c:otherwise>mainnav-lg</c:otherwise>   
	    	</c:choose>
	    "  
    	<c:if test="setting.box_lay=='1'&&setting.box_back_img!=null&&setting.box_back_img!=''">
    		style="background-image:url(${setting.box_back_img });background-repeat:no-repeat;background-size:cover;"  
    	</c:if>>
    	
    	
        
        <!--NAVBAR-->
        <!--===================================================-->
   
        <%@ include file="/common/include/header.jsp" %>
        <!--===================================================-->
        <!--END NAVBAR-->
		
        <div class="boxed">

            <!--CONTENT CONTAINER-->
            <!--===================================================-->
            <div id="content-container">    
            	<%@ include file="/common/include/main.jsp" %>
            </div>
            <!--===================================================-->
            <!--END CONTENT CONTAINER-->


            
            <!--ASIDE-->
            <!--===================================================-->
           
            
            <%@ include file="/common/include/aside.jsp" %>
            <!--===================================================-->
            <!--END ASIDE-->

            
            <!--MAIN NAVIGATION-->
            <!--===================================================-->
            
            
             <%@ include file="/common/include/nav.jsp" %>
            <!--===================================================-->
            <!--END MAIN NAVIGATION-->

        </div>

        

        <!-- FOOTER -->
        <!--===================================================-->
       
         <%@ include file="/common/include/footer.jsp" %>
        <!--===================================================-->
        <!-- END FOOTER -->


        <!-- SCROLL PAGE BUTTON -->
        <!--===================================================-->
        <button class="scroll-top btn">
            <i class="pci-chevron chevron-up"></i>
        </button>
        <!--===================================================-->



    </div>
    <!--===================================================-->
    <!-- END OF CONTAINER -->
    <%@ include file="/common/include/setting.jsp" %>
        <!-- SETTINGS - DEMO PURPOSE ONLY -->
    <!--===================================================-->
    
    <!--===================================================-->
    <!-- END SETTINGS -->
	
	<!-- 个性化配置代码 -->


	<!-- pjax配置 -->
	<script>
			//PJax
			function doPjax(url){
				
				//pjax开始（与服务器连接建立后触发）e
				$(document).bind('pjax:start', function () {
					history.replaceState({},"",ctx+"/shiro/home");
		        });
				
				//pjax:start之后触发
				$(document).bind('pjax:send', function () {
					history.replaceState({},"",ctx+"/shiro/home");
		        });
				
				$(document).bind('pjax:error', function () {
					alert("pjax出错");
		        });
			
				//pjax所有事件结束后触发
				$(document).bind('pjax:end', function () {
					history.replaceState({},"",ctx+"/shiro/home");
	        	});

				$.pjax({
					'url':url,
					 container: '#content-container',
					 fragment:'#content-container',
					 timeout:30000
				});
				

			}
			//初始化高度
			function initFullHeight(){
				var clientW = document.body.clientHeight-160;
				$(".lion-fullHeight").css("height",clientW+"px");
			}
			
	</script>
</body>
</html>